import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export const localRoutes = [
  // 一级菜单路由配置示例，页面只显示一级菜单（利用重定向实现）
  {
    path: '/main', // 一级路由，指向/path
    name: 'Main', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    redirect: '/dashboard', // 页面显示一级菜单, 利用重定向指定定向跳转path实现
    children: [{
      path: '/dashboard', // 嵌套路由 二级路由路径
      name: 'Dashboard', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
      component: () => import('@/views/dashboard/index'), // 页面地址
      meta: { title: '首页', type: 'localMenu' }
    }]
  },
  // 刘强任务菜单开始
  {
    path: '/M8approve', // 一级路由，指向/path
    name: '流程审批', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '流程审批', type: 'localMenu' },
    children: [
      {
        path: '/M00704', // 嵌套路由，二级路由路径
        name: '待审核任务', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/activeTasks'), // 页面地址
        meta: { title: '待审核任务', type: 'localMenu' }
      },
      {
        path: '/approval', // 嵌套路由，二级路由路径
        name: '待审核任务-审核', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/approval'), // 页面地址
        meta: { title: '待审核任务-审核', type: 'localMenu', displayFlag: '0' }
      },
      {
        path: '/M00705', // 嵌套路由，二级路由路径
        name: '已完成任务', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/hisCompleteTasks'), // 页面地址
        meta: { title: '已完成任务', type: 'localMenu' }
      },
      {
        path: '/hisTaskDetail', // 嵌套路由，二级路由路径
        name: '已完成任务-详情', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/hisTaskDetail'), // 页面地址
        meta: { title: '已完成任务-详情', type: 'localMenu', displayFlag: '0' }
      },
      {
        path: '/M00706', // 嵌套路由，二级路由路径
        name: '流程审批追踪', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/hisCompleteProcessInstance'), // 页面地址
        meta: { title: '流程审批追踪', type: 'localMenu' }
      },
      {
        path: '/hisCompleteProcessInstanceDetail', // 嵌套路由，二级路由路径
        name: '流程审批追踪-详情', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/hisCompleteProcessInstanceDetail'), // 页面地址
        meta: { title: '流程审批追踪-详情', type: 'localMenu', displayFlag: '0' }
      },
      {
        path: '/M00707', // 嵌套路由，二级路由路径
        name: '转审批', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/surrogate'), // 页面地址
        meta: { title: '转审批', type: 'localMenu' }
      },
      {
        path: '/M00709', // 嵌套路由，二级路由路径
        name: '待审核代理任务', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/workflow/surrogateActiveTasks'), // 页面地址
        meta: { title: '待审核代理任务', type: 'localMenu' }
      }
    ]
  },
  {
    path: '/M8basicdata', // 一级路由，指向/path
    name: '基础数据', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '基础数据', type: 'localMenu' },
    children: [
      {
        path: '/M8sj2', // 嵌套路由，二级路由路径
        name: '托管行信息管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/org/orgTrustInfo'), // 页面地址
        meta: { title: '托管行信息管理', type: 'localMenu' }
      },
      {
        path: '/M8BrokerInfo', // 嵌套路由，二级路由路径
        name: '券商信息管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/host/clear/M8BrokerInfo'), // 页面地址
        meta: { title: '券商信息管理', type: 'localMenu' }
      },
      {
        path: '/M866', // 嵌套路由，二级路由路径
        name: '机构信息维护', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/bizParam/M866'), // 页面地址
        meta: { title: '机构信息维护', type: 'localMenu' }
      },
      {
        path: '/M866SP001', // 嵌套路由，二级路由路径
        name: '机构信息维护-新增', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/bizParam/M866SP001'), // 页面地址
        meta: { title: '机构信息维护-新增', type: 'localMenu', displayFlag: '0' }
      },
      {
        path: '/M866SP002', // 嵌套路由，二级路由路径
        name: '机构信息维护-修改', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/bizParam/M866SP002'), // 页面地址
        meta: { title: '机构信息维护-修改', type: 'localMenu', displayFlag: '0' }
      },
      {
        path: '/M866SP003', // 嵌套路由，二级路由路径
        name: '机构信息维护-详情', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/bizParam/M866SP003'), // 页面地址
        meta: { title: '机构信息维护-详情', type: 'localMenu', displayFlag: '0' }
      },
      {
        path: '/M8CurrentRate', // 嵌套路由，二级路由路径
        name: '活期利率设置', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/clear/deal/M8CurrentRate'), // 页面地址
        meta: { title: '活期利率设置', type: 'localMenu' }
      },
      {
        path: '/M8CurrentRateAdd', // 嵌套路由，二级路由路径
        name: 'M8CurrentRateAdd', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/clear/deal/M8CurrentRateAdd'), // 页面地址
        meta: { title: '活期利率设置-新增', type: 'localMenu', displayFlag: '0' }
      }
    ]
  },
  // 刘强任务菜单jieshu
  // 刘广升任务菜单开始
  {
    path: '/portfolio', name: '投组管理',
    meta: { title: '投组管理', type: 'localMenu' },
    children: [
      {
        path: '/portfolioSetting', name: '投组设置',
        meta: { title: '投组设置', type: 'localMenu' },
        children: [
          {
            path: '/portfolio_prod', name: '产品组合管理',
            meta: { title: '产品组合管理', type: 'localMenu' },
            component: resolve => require(['@/views/page/M8/invest/portfolio/M8212.vue'], resolve)
          },
          {
            path: '/portfolio_user', name: '用户投组管理',
            meta: { title: '用户投组管理', type: 'localMenu' },
            component: resolve => require(['@/views/page/M8/invest/portfolio/M8217.vue'], resolve)
          },
          {
            path: '/portfolio_setting_manager', name: '用户投组-管理投组',
            meta: { title: '用户投组-管理投组', type: 'localMenu', displayFlag: '0' },
            component: resolve => require(['@/views/page/M8/invest/portfolio/M8217M.vue'], resolve)
          }
        ]
      }
    ]
  },
  {
    name: '产品管理', meta: { title: '产品管理', type: 'localMenu' },
    children: [
      {
        name: '产品设计', meta: { title: '产品设计', type: 'localMenu' },
        children: [
          {
            path: '/prod_design_maintance', name: '产品系列维护',
            meta: { title: '产品系列维护', type: 'localMenu' },
            component: resolve => require(['@/views/page/M8/prod/design/prodSeries.vue'], resolve)
          },
          {
            path: '/prod_design_template', name: '产品模板',
            meta: { title: '产品模板', type: 'localMenu' },
            component: resolve => require(['@/views/page/M8/prod/design/prodModel/prodModel.vue'], resolve)
          },
          {
            path: '/prod_update_model', name: '修改产品模板',
            meta: { title: '修改产品模板', type: 'localMenu', displayFlag: '0' },
            component: resolve => require(['@/views/page/M8/prod/design/prodModel/updateProdModel.vue'], resolve)
          },
          {
            path: '/prod_detail_model', name: '产品模板详情',
            meta: { title: '产品模板详情', type: 'localMenu', displayFlag: '0' },
            component: resolve => require(['@/views/page/M8/prod/design/prodModel/detailProdModel.vue'], resolve)
          },
          {
            path: '/prod_add_model', name: '新增产品模板',
            meta: { title: '新增产品模板', type: 'localMenu', displayFlag: '0' },
            component: resolve => require(['@/views/page/M8/prod/design/prodModel/addProdModel.vue'], resolve)
          },
          {
            name: '费用方案', meta: { title: '费用方案', type: 'localMenu' }, path: '/feeManage',
            component: resolve => require(['@/views/page/M8/fee/feeManage/feeIndex.vue'], resolve)
          },
          {
            name: '新建费用方案', meta: { title: '新建费用方案', type: 'localMenu', displayFlag: '0' }, path: '/feeManage_add',
            component: resolve => require(['@/views/page/M8/fee/feeManage/addFee.vue'], resolve)
          },
          {
            name: '修改费用方案', meta: { title: '修改费用方案', type: 'localMenu', displayFlag: '0' }, path: '/feeManage_update',
            component: resolve => require(['@/views/page/M8/fee/feeManage/updateFee.vue'], resolve)
          },
          {
            name: '费用方案详情', meta: { title: '费用方案详情', type: 'localMenu', displayFlag: '0' }, path: '/feeManage_detail',
            component: resolve => require(['@/views/page/M8/fee/feeManage/feeDetail.vue'], resolve)
          },
          {
            name: '产品模拟情景分析', path: '/prod_design_analysis_situation',
            meta: { title: '产品模拟情景分析', type: 'localMenu' },
            component: resolve => require(['@/views/page/M8/report/asetDebtManager/liquidityRisk/situationAnalysis/dataSituationAnalysis/dataSituationIndex.vue'], resolve)
          }
        ]
      }, {
        path: 'report', name: '产品申报',
        meta: { title: '产品申报', type: 'localMenu' },
        children: [{
          path: '/prod_report_person', name: '产品人员信息',
          meta: { title: '产品人员信息', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/prod/design/prodStaff.vue'], resolve)
        }, {
          path: '/prod_report_import_code', name: '中债登记编码导入',
          meta: { title: '中债登记编码导入', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/prod/design/debtRegister.vue'], resolve)
        }]
      }, {
        path: '/M8prod04', name: '产品募集',
        meta: { title: '产品募集', type: 'localMenu' },
        children: [
          {
            path: '/M8prodvol', name: '产品份额',
            meta: { title: '产品份额', type: 'localMenu' },
            component: () => import('@/views/page/M8/prod/invalidity/prodVol')
          }
        ]
      },
      {
        path: '/M8prod05', name: '产品运行',
        meta: { title: '产品运行', type: 'localMenu' },
        children: [
          {
            path: '/M8adjust', name: '产品信息调整',
            meta: { title: '产品信息调整', type: 'localMenu' },
            component: () => import('@/views/page/M8/prod/adjust/prodAdjustList')
          },
          {
            path: '/ProdAdjustFee', name: '产品费用信息调整',
            meta: { title: '产品费用信息调整', type: 'localMenu', displayFlag: '0' },
            component: () => import('@/views/page/M8/prod/adjust/prodAdjustFee')
          },
          {
            path: '/ProdAdjustPayInterest', name: '付息日信息调整',
            meta: { title: '付息日信息调整', type: 'localMenu', displayFlag: '0' },
            component: () => import('@/views/page/M8/prod/adjust/prodAdjustPayInterest')
          },
          {
            path: '/M8prodexpirepre', name: '提前兑付',
            meta: { title: '提前兑付', type: 'localMenu' },
            component: () => import('@/views/page/M8/prod/operation/prodExpirePre')
          },
          {
            path: '/M8prodinterestpay', name: '中间付息',
            meta: { title: '中间付息', type: 'localMenu' },
            component: () => import('@/views/page/M8/prod/operation/prodInterestPay')
          }]
      }, {
        path: '/M8prod06', name: '产品到期',
        meta: { title: '产品到期', type: 'localMenu' },
        children: [
          {
            path: '/ProdExpire', name: '产品到期',
            meta: { title: '产品到期', type: 'localMenu' },
            component: () => import('@/views/page/M8/prod/operation/prodExpire')
          }]
      }, {
        path: '/M8prod07', name: '产品费用处理',
        meta: { title: '产品费用处理', type: 'localMenu' },
        children: [
          {
            path: '/FeePay', name: '费用支付',
            meta: { title: '费用支付', type: 'localMenu' },
            component: () => import('@/views/page/M8/fee/feePay')
          },
          {
            path: '/Fee_pay', name: '银行间费用结算',
            meta: { title: '银行间费用结算', type: 'localMenu' },
            component: () => import('@/views/page/M8/clear/inter_bank/fee/fee_pay')
          },
          {
            path: '/ValPerformenceDraw', name: '业绩报酬支取',
            meta: { title: '业绩报酬支取', type: 'localMenu' },
            component: () => import('@/views/page/M8/val/performence/valPerformenceDraw')
          },
          {
            path: '/M8431SP02', name: '管理费回拨明细查询',
            meta: { title: '管理费回拨明细查询', type: 'localMenu' },
            component: () => import('@/views/page/M8/M8431SP02')
          }]
      }, {
        path: 'publish', name: '产品发行',
        meta: { title: '产品发行', type: 'localMenu' },
        children: [{
          path: '/prod_publish_rate', name: '业绩基准利率',
          meta: { title: '业绩基准利率', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/val/normrate/prodNormRate.vue'], resolve)
        }, {
          path: '/prod_publish_info', name: '产品信息',
          meta: { title: '产品信息', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/prod/info/prodInfoList.vue'], resolve)
        }, {
          path: '/prod_edit_info', name: '修改产品信息',
          meta: { title: '修改产品信息', type: 'localMenu', displayFlag: '0' },
          component: resolve => require(['@/views/page/M8/prod/info/prodInfoEdit.vue'], resolve)
        }, {
          path: '/prod_add_info', name: '新增产品信息',
          meta: { title: '新增产品信息', type: 'localMenu', displayFlag: '0' },
          component: resolve => require(['@/views/page/M8/prod/info/prodInfoAdd.vue'], resolve)
        }, {
          path: '/prod_copy_info', name: '复制产品信息',
          meta: { title: '复制产品信息', type: 'localMenu', displayFlag: '0' },
          component: resolve => require(['@/views/page/M8/prod/info/prodInfoCopy.vue'], resolve)
        }, {
          path: '/prod_detail_info', name: '产品信息详情',
          meta: { title: '产品信息详情', type: 'localMenu', displayFlag: '0' },
          component: resolve => require(['@/views/page/M8/prod/info/prodInfoDetail.vue'], resolve)
        }]
      },
      {
        path: '/document_management', name: '文档管理',
        meta: { title: '文档管理', type: 'localMenu' },
        children: [{
          path: '/document_field_conf', name: '文档字段配置',
          meta: { title: '文档字段配置', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/file/fileFieldConf.vue'], resolve)
        }, {
          path: '/document_model_upload', name: '文档模板上传',
          meta: { title: '文档模板上传', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/file/fileTempUpload.vue'], resolve)
        },
        {
          path: '/prod_document_doc', name: '产品文档下载',
          meta: { title: '产品文档下载', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/file/fileProdDoc.vue'], resolve)
        },
        {
          path: '/info_publish', name: '信息披露',
          meta: { title: '信息披露', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/file/fileProdPublish.vue'], resolve)
        },
        {
          path: '/of_document_doc', name: '单据文档下载',
          meta: { title: '单据文档下载', type: 'localMenu' },
          component: resolve => require(['@/views/page/M8/file/M8BillOfDocument.vue'], resolve)
        }
        ]
      }
    ]
  },
  // 刘广升任务菜单结束
  {
    path: '/M8asset', // 一级路由，指向/path
    name: '资产管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '资产管理', type: 'localMenu' },
    children: [
      {
        path: '/M8asset02', // 嵌套路由，二级路由路径
        name: '资产基本信息', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        meta: { title: '资产基本信息', type: 'localMenu' },
        children: [
          {
            path: '/M82001', // 三级路由路径
            name: '自定义资产模板管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/assdept/M82001'), // 多级嵌套路由，末级指向页面
            meta: { title: '自定义资产模板管理', type: 'localMenu' }
          }, {
            path: '/M82002', // 嵌套路由，二级路由路径
            name: '自定义资产类别管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/assdept/M82002'), // 页面地址
            meta: { title: '自定义资产类别管理', type: 'localMenu' }
          }, {
            path: '/M82003', // 嵌套路由，二级路由路径
            name: '自定义资产管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/assdept/M82003'), // 页面地址
            meta: { title: '自定义资产管理', type: 'localMenu' }
          }, {
            path: '/M8asset0204', // 嵌套路由，二级路由路径
            name: '利率型SPV管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/assdept/spv/M8asset0204'), // 页面地址
            meta: { title: '利率型SPV管理', type: 'localMenu' }
          }, {
            path: '/M8asset0205', // 嵌套路由，二级路由路径
            name: '净值型SPV管理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/assdept/spv/M8asset0205'), // 页面地址
            meta: { title: '净值型SPV管理', type: 'localMenu' }
          }, {
            path: '/ex', // 嵌套路由，二级路由路径
            name: '临时', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            meta: { title: '临时', type: 'localMenu', displayFlag: '0' },
            children: [
              {
                path: '/M82001ex', // 一级路由，指向/path
                name: '自定义资产模板子页面', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
                component: () => import('@/views/page/M8/invest/assdept/M82001ex'), // 页面地址
                meta: { title: '自定义资产模板子页面', type: 'localMenu' }
              },
              {
                path: '/M82001exAdd', // 一级路由，指向/path
                name: '新增自定义资产模板', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
                component: () => import('@/views/page/M8/invest/assdept/M82001exAdd'), // 页面地址
                meta: { title: '新增自定义资产模板', type: 'localMenu' }
              },
              {
                path: '/M82003exAdd', // 一级路由，指向/path
                name: '新增自定义资产', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
                component: () => import('@/views/page/M8/invest/assdept/M82003exAdd'), // 页面地址
                meta: { title: '新增自定义资产', type: 'localMenu' }
              },
              {
                path: '/M8asset0204exAdd', // 一级路由，指向/path
                name: '新增利率型SPV', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
                component: () => import('@/views/page/M8/invest/assdept/spv/M8asset0204exAdd'), // 页面地址
                meta: { title: '新增利率型SPV', type: 'localMenu' }
              },
              {
                path: '/M8asset0205exAdd', // 一级路由，指向/path
                name: '新增净值型SPV', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
                component: () => import('@/views/page/M8/invest/assdept/spv/M8asset0205exAdd'), // 页面地址
                meta: { title: '新增净值型SPV', type: 'localMenu' }
              }
            ]
          }
        ]
      },
      {
        path: '/M8asset02', // 嵌套路由，二级路由路径
        name: '资产存续期处理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        meta: { title: '资产存续期处理', type: 'localMenu' },
        children: [
          {
            path: '/M8291', // 三级路由路径
            name: 'M8291', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/tradeDeal/M8291'), // 多级嵌套路由，末级指向页面
            meta: { title: '资产负债存续期管理', type: 'localMenu' }
          }, {
            path: '/M830B04', // 嵌套路由，二级路由路径
            name: 'M830B04', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond4/M830B04'), // 页面地址
            meta: { title: 'ABS债券补息', type: 'localMenu' }
          }, {
            path: '/M826B03', // 嵌套路由，二级路由路径
            name: 'M826B03', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond7/M826B03'), // 页面地址
            meta: { title: '基金分红', type: 'localMenu' }
          }, {
            path: '/M826B07', // 嵌套路由，二级路由路径
            name: 'M826B07', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond7/M826B07'), // 页面地址
            meta: { title: '基金份额校准', type: 'localMenu' }
          }, {
            path: '/M830B02', // 嵌套路由，二级路由路径
            name: 'M830B02', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond4/M830B02'), // 页面地址
            meta: { title: '同业存款补息', type: 'localMenu' }
          }, {
            path: '/M824B02', // 嵌套路由，二级路由路径
            name: 'M824B02', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond6/M824B02'), // 页面地址
            meta: { title: '同业存款提前还本', type: 'localMenu' }
          }, {
            path: '/M830B01', // 嵌套路由，二级路由路径
            name: 'M830B01', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond4/M830B01'), // 页面地址
            meta: { title: '自定义资产补息', type: 'localMenu' }
          }, {
            path: '/M82004B02', // 嵌套路由，二级路由路径
            name: 'M82004B02', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond5/M82004B02'), // 页面地址
            meta: { title: '自定义资产提前还本', type: 'localMenu' }
          }, {
            path: '/M82004B03', // 嵌套路由，二级路由路径
            name: 'M82004B03', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond5/M82004B03'), // 页面地址
            meta: { title: '自定义资产净值型分红', type: 'localMenu' }
          }, {
            path: '/M8CurrentInterest', // 嵌套路由，二级路由路径
            name: 'M8CurrentInterest', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/clear/deal/M8CurrentInterest'), // 页面地址
            meta: { title: '活期收息', type: 'localMenu' }
          }
        ]
      },

      {
        path: '/M8asset04', // 嵌套路由，二级路由路径
        name: '资产到期处理', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        meta: { title: '资产到期处理', type: 'localMenu' },
        children: [
          {
            path: '/M824B03', // 三级路由路径
            name: '同业展期', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond6/M824B03'), // 多级嵌套路由，末级指向页面
            meta: { title: '同业展期', type: 'localMenu' }
          }
        ]
      },
      {
        path: '/two-menu', // 二级路由路径
        name: 'TwoMenu3', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        meta: { title: '公开市场数据', type: 'localMenu' },
        children: [{
          path: '/bond_info',
          name: 'BondInfo',
          component: () => import('@/views/page/M8/invest/bondinfo/M8201.vue'),
          meta: { title: '债券信息管理', type: 'localMenu' }
        },
        {
          path: '/add_bond_info',
          name: 'NewBondInfo',
          component: () => import('@/views/page/M8/invest/bondinfo/M8201A.vue'),
          meta: { title: '新增债券信息', type: 'localMenu', displayFlag: '0' }
        },
        {
          path: '/bond_val',
          name: 'BondVal',
          component: () => import('@/views/page/M8/invest/trade/bond3/M82C1B03.vue'),
          meta: { title: '债券估值管理', type: 'localMenu' }
        },
        {
          path: '/add_bond_val',
          name: 'AddBondVal',
          component: () => import('@/views/page/M8/invest/trade/bond3/M8203_add.vue'),
          meta: { title: '新增债券估值管理', type: 'localMenu', displayFlag: '0' }
        },
        {
          path: '/update_bond_val',
          name: 'UpdateBondVal',
          component: () => import('@/views/page/M8/invest/trade/bond3/M8203_modi.vue'),
          meta: { title: '修改债券估值管理', type: 'localMenu', displayFlag: '0' }
        },
        {
          path: '/found_info',
          name: 'FondInfo',
          component: () => import('@/views/page/M8/invest/fundinfo/M8207.vue'),
          meta: { title: '基金信息管理', type: 'localMenu' }
        },
        {
          path: '/fond_val',
          name: 'FondVal',
          component: () => import('@/views/page/M8/invest/trade/bond3/M82C1B02.vue'),
          meta: { title: '基金估值管理', type: 'localMenu' }
        },
        {
          path: '/assdept_val',
          name: 'AssdeptVal',
          component: () => import('@/views/page/M8/invest/trade/bond3/M82C1B01.vue'),
          meta: { title: '净值型资产估值', type: 'localMenu' }
        }
        ]
      }
    ]
  },
  {
    path: '/M8deal', // 嵌套路由，二级路由路径
    name: '投资交易', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '投资交易', type: 'localMenu' },
    children: [
      {
        path: '/M8deal08', // 三级路由路径
        name: '银行间业务', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        // component: () => import('@/views/page/M8/invest/trade/bond6/M824B03'), // 多级嵌套路由，末级指向页面
        meta: { title: '银行间业务', type: 'localMenu' },
        children: [
          {
            path: '/M8222B01', // 三级路由路径
            name: '银行间债券交易', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond/M8222B01'), // 多级嵌套路由，末级指向页面
            meta: { title: '银行间债券交易', type: 'localMenu' }
          },
          {
            path: '/M8deal0202', // 三级路由路径
            name: '银行间债券行权', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/exchangeHouse/M8223'), // 多级嵌套路由，末级指向页面
            meta: { title: '银行间债券行权', type: 'localMenu' }
          },
          {
            path: '/M8BondBank', // 三级路由路径
            name: '银行间债券承分销', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond/M8222B04'), // 多级嵌套路由，末级指向页面
            meta: { title: '银行间债券承分销', type: 'localMenu' }
          }
        ]
      },
      {
        path: '/M8deal09', // 三级路由路径
        name: '交易所业务', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        //component: () => import('@/views/page/M8/invest/trade/bond6/M824B03'), // 多级嵌套路由，末级指向页面
        meta: { title: '交易所业务', type: 'localMenu' },
        children: [
          {
            path: '/M82F02B001', // 三级路由路径
            name: '交易所债券交易', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond2/M82F02B001'), // 多级嵌套路由，末级指向页面
            meta: { title: '交易所债券交易', type: 'localMenu' }
          },
          {
            path: '/M8deal0202', // 三级路由路径
            name: '交易所债券行权', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/exchangeHouse/M8223ex'), // 多级嵌套路由，末级指向页面
            meta: { title: '交易所债券行权', type: 'localMenu' }
          }
        ]
      },
      {
        path: '/M8deal03', // 三级路由路径
        name: '同业及货币市场', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        //component: () => import('@/views/page/M8/invest/trade/bond6/M824B03'), // 多级嵌套路由，末级指向页面
        meta: { title: '同业及货币市场', type: 'localMenu' },
        children: [
          {
            path: '/M8222B02', // 三级路由路径
            name: '债券质押式回购', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond/M8222B02'), // 多级嵌套路由，末级指向页面
            meta: { title: '债券质押式回购', type: 'localMenu' }
          },
          {
            path: '/M8222B03', // 三级路由路径
            name: '债券买断式回购', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond/M8222B03'), // 多级嵌套路由，末级指向页面
            meta: { title: '债券买断式回购', type: 'localMenu' }
          },
          {
            path: '/M82F02B002', // 三级路由路径
            name: '交易所债券质押式回购', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond2/M82F02B002'), // 多级嵌套路由，末级指向页面
            meta: { title: '交易所债券质押式回购', type: 'localMenu' }
          },
          {
            path: '/M824B01', // 三级路由路径
            name: '同业存款', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond6/M824B01'), // 多级嵌套路由，末级指向页面
            meta: { title: '同业存款', type: 'localMenu' }
          },
          {
            path: '/M826B30', // 三级路由路径
            name: '货币基金', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond7/M826B30'), // 多级嵌套路由，末级指向页面
            meta: { title: '货币基金', type: 'localMenu' }
          },
          {
            path: '/M824B06', // 三级路由路径
            name: '同业借款', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/invest/trade/bond6/M824B06'), // 多级嵌套路由，末级指向页面
            meta: { title: '同业借款', type: 'localMenu' }
          }
        ]
      }
    ]
  },
  // 系统设置
  {
    path: '/kk-system', // 一级路由，指向/path
    name: 'KkSystem', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '系统设置', type: 'localMenu' }, // 一级菜单不涉及路由跳转时，名称填入一级title
    children: [{
      path: '/flowDesign', // 二级路由路径
      name: 'flowDesign', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
      meta: { title: '自定义工作流', type: 'localMenu' },
      children: [
        {
          path: '/flows', // 三级路由路径
          name: 'flows', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/page/workflow/flows'), // 多级嵌套路由，末级指向页面
          meta: { title: '流程设计', type: 'localMenu' }
        },
        {
          path: '/flowMgt', // 三级路由路径
          name: 'flowMgt', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/page/workflow/flowMgt'), // 多级嵌套路由，末级指向页面
          meta: { title: '流程设计-新增', type: 'localMenu', displayFlag: '0' }
        }
      ]
    }]
  },
  // 三级菜单路由配置示例
  {
    path: '/one-menu3', // 一级路由，指向/path
    name: 'OneMenu3', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '一级菜单3', type: 'localMenu' }, // 一级菜单不涉及路由跳转时，名称填入一级title
    children: [{
      path: '/two-menu', // 二级路由路径
      name: 'TwoMenu3', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
      meta: { title: '二级菜单', type: 'localMenu' },
      children: [{
        path: '/three-menu', // 三级路由路径
        name: 'ThreeMenu3', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/one-menu3/two-menu/three-menu/index'), // 多级嵌套路由，末级指向页面
        meta: { title: '三级菜单', type: 'localMenu' }
      }]
    }]
  },
  // 四级菜单路由配置示例
  {
    path: '/one-menu4', // 一级路由路径
    name: 'OneMenu4', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '一级菜单4', type: 'localMenu' },
    children: [{
      path: '/two-menu', // 二级路由路径
      name: 'TwoMenu4', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
      meta: { title: '二级菜单', type: 'localMenu' },
      children: [{
        path: '/three-menu', // 三级路由路径
        name: 'ThreeMenu4', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        meta: { title: '三级菜单', type: 'localMenu' },
        children: [{
          path: '/four-menu', // 四级路由路径
          name: 'FourMenu4', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/one-menu4/two-menu/three-menu/four-menu/index'), // 多级嵌套路由，末级指向页面
          meta: { title: '四级菜单', type: 'localMenu' }
        }]
      }]
    }]
  },
  // 二级菜单路由配置示例
  {
    path: '/one-menu2', // 一级路由，指向/path
    name: 'OneMenu2', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '一级菜单2', type: 'localMenu' }, // 一级菜单不涉及路由跳转时，名称填入一级title
    children: [{
      path: '/two-menu', // 二级路由路径
      name: 'TwoMenu2', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
      meta: { title: '二级菜单', type: 'localMenu' },
      component: () => import('@/views/one-menu2/two-menu/index') // 多级嵌套路由，末级指向页面
    }]
  },
  {
    path: '/loaditem', // 一级路由路径
    name: 'Loaditem', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '引入子组件案例', type: 'localMenu' },
    component: () => import('@/views/test/index') // 多级嵌套路由，末级指向页面
  },
  {
    path: '/ceshirep', // 一级路由路径
    name: 'Ceshirep', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '报表测试1', type: 'localMenu' },
    component: () => import('@/views/test/index3') // 多级嵌套路由，末级指向页面
  },
  {
    path: '/ceshirep2', // 一级路由路径
    name: 'Ceshirep2', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '报表测试2', type: 'localMenu' },
    component: () => import('@/views/test/index4') // 多级嵌套路由，末级指向页面
  },
  {
    path: '/m84', // 一级路由，指向/path
    name: 'M84', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
    meta: { title: '报表管理', type: 'localMenu' }, // 一级菜单不涉及路由跳转时，名称填入一级title
    children: [{
      path: '/m848a', // 二级路由路径
      name: 'M848A', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
      meta: { title: '财务报表', type: 'localMenu' },
      children: [
        {
        path: '/m82sj008', // 三级路由路径
        name: 'M82SJ008', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/report/vue_report/report_M82SJ008'), // 多级嵌套路由，末级指向页面
        meta: { title: '科目明细表', type: 'localMenu',menuid:'M82SJ008'}
      },{
        path: '/m84201', // 三级路由路径
        name: 'M84201', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        component: () => import('@/views/page/M8/report/vue_report/report_M84201'), // 多级嵌套路由，末级指向页面
        meta: { title: '所有者权益变动表', type: 'localMenu',menuid:'M84201'}
      },{
          path: '/m84a4sp07', // 三级路由路径
          name: 'M84A4SP07', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/page/M8/report/vue_report/report_M84A4SP07'), // 多级嵌套路由，末级指向页面
          meta: { title: '利润表', type: 'localMenu',menuid:'M84A4SP07'}
        },{
          path: '/m84fz002', // 三级路由路径
          name: 'M84FZ002', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/page/M8/report/vue_report/report_M84FZ002'), // 多级嵌套路由，末级指向页面
          meta: { title: '资产负债表', type: 'localMenu',menuid:'M84FZ002'}
        },{
          path: '/m812sp005', // 三级路由路径
          name: 'M812SP005', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/page/M8/report/vue_report/report_M812SP005'), // 多级嵌套路由，末级指向页面
          meta: { title: '产品科目余额表', type: 'localMenu',menuid:'M812SP005'}
        },{
          path: '/m82sj009', // 三级路由路径
          name: 'M82SJ009', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
          component: () => import('@/views/page/M8/report/vue_report/report_M82SJ009'), // 多级嵌套路由，末级指向页面
          meta: { title: '计提账户明细查询', type: 'localMenu',menuid:'M82SJ009'}

        }
    ]
    },
      {
        path: '/m848b', // 二级路由路径
        name: 'M848B', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
        meta: { title: '人行报表', type: 'localMenu' },
        children: [
          {
            path: '/m848b001', // 三级路由路径
            name: 'M848B001', // name大驼峰命名，即各个单词首字母大写,且各个路由name不可重复
            component: () => import('@/views/page/M8/report/vue_report/report_M848B001'), // 多级嵌套路由，末级指向页面
            meta: { title: '资管产品募集余额统计模板', type: 'localMenu',menuid:'M848B001'}
          }
        ]
      }

      ]
  }
]

const createRouter = () => new Router({
  // mode: 'history', // require service support
  scrollBehavior: () => ({ y: 0 })
})

const router = createRouter()

export function resetRouter() {
  const newRouter = createRouter()
  router.matcher = newRouter.matcher
}

export default router

